package com.wulinbus.service;

import java.util.List;
import java.util.Map;

import com.wulinbus.model.UserModel;


public interface UserService {
	public List<UserModel> getList();
	
	public List<UserModel> getListByUid(List<Integer> uids);
	
	public UserModel login(Map<String, Object> param);
	public UserModel adminLogin(Map<String, Object> param);
	public Integer getMaxId();
	public void delete(UserModel userModel);
	public void addCompUser(UserModel userModel);
	public void addCreative(UserModel userModel);
	public UserModel findUserByEmail(String email);
	public UserModel creativeExist(String title);
	public long getMaxCid();
	public void addCoverUrl(UserModel userModel);
	public void addMatterUrl(UserModel userModel);
	public Integer findUidByEmail(String email);
	public void addCreativeUrl(UserModel userModel_C);
	public UserModel findUserByComp(String comp);
	public UserModel findUserByUid(Integer uid);
	public String findCompByUid(Integer uid);

	public List<Integer> findUidByKeyAuthor(String search);

	public List<UserModel> findUserByKeyAuthor(String search);

	public void addLoginTime(Integer uid,String login_time);

	public Integer getRoleByUid(Integer uid);
	
	public Integer addBalance(Integer uid, Float money);
	
	public List<UserModel> getList(Integer start, Integer count);
	public Integer getListCount();
	
	public Integer updateUser(UserModel user);

	public void updateBalanceOfNumOne(Integer collect_budget, Integer sid);

	public void updateBalanceOfCollector(Float collect_budget, Integer sid);

}
